@model OA.Model.DialogField
@{
    ViewBag.Title = "修改栏位";
    }
@section head{
   <script type="text/javascript">
       $(document).ready(function () {
           $('.btnSubmit').click(function () {
               ajax_submit('#content', undefined, function (r) {
                   if (r.success) {
                       CloseMe();
                   }
               });
               return false; //兼容FF
           });
       });
   </script>
}
@section body{
<body>
   <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',border:false">
            <div class="navigation">
                <div class="left">
                   @ViewBag.CurrentPath 栏位管理 > 修改
                </div>
                <a href="javascript:CloseMe();" class="back">后退</a>
            </div>
            <div class="expand_margin"></div>
        </div> 
        <div id='content' data-options="region:'center',border:false" >
             <div class="easyui-tabs" data-options="plain:true,border:false,fit:true">
                <div title="编辑栏位信息">  
                    <table class="form_table">
                        <col width="180px"/>
                        <tbody>
                            <tr>
                                <th>编号：</th>
                                <td>
                                  <input type="text" name="FieldKey" value="@Model.FieldKey" class="easyui-validatebox imedisable" data-options="required:true,validType:['length[1,32]','Account']" />
                                  <label>*</label>
                                </td>
                            </tr>
                            <tr>
                                <th>标题：</th>
                                <td>
                                   <input type="text" name="Title" value="@Model.Title" class="easyui-validatebox" data-options="required:true" data-options="required:true,validType:['length[1,64]']"/>
                                   <label>*</label>
                                </td>
                            </tr>
                            <tr>
                                <th>宽度：</th>
                                <td>
                                    <input type="text" id="Width" value="@Model.Width" name="Width" value="100" class="easyui-numberspinner"
                                     data-options="min:0,max:10000,required:true"  style="width:80px;" />
                                     <label>* px</label>
                                </td>
                            </tr>
                            <tr>
                                <th>排序：</th>
                                <td>
                                    <input type="text" id="Sort" value="@Model.Sort" name="Sort" value="99" class="easyui-numberspinner"
                                     data-options="min:-10000,max:10000,required:true"  style="width:80px;" />
                                    <label>* 数字越大排序时越靠前</label>
                                </td>
                            </tr>
                            <tr>
                                <th>是否显示</th>
                                <td>
                                    <input type="radio" value="true" name="IsShow" @(Model.IsShow?"checked=\"checked\"":"") />是
                                    <input type="radio" value="false" name="IsShow" @(Model.IsShow==false?"checked=\"checked\"":"") />否
                                </td>
                            </tr>
                            <tr>
                                <th>返回值</th>
                                <td>
                                    <input type="radio" value="true" name="IsResult" @(Model.Dialog.ResultFieldKey == Model.FieldKey ? "checked=\"checked\"" : "") />是
                                    <input type="radio" value="false" name="IsResult"  />否
                                    <label> 一个对话框只能有一个返回值</label>
                                </td>
                            </tr>
                            <tr>
                               <th></th>
                               <td>
                                  <input type="submit" value="提交保存" class="btnSubmit" />
                               </td>
                            </tr>
                        </tbody>
                    </table>
                </div>          
            </div>
        </div>
    </div>
</body>
}
